import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class Test03 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: RichText(text: TextSpan(
        style: DefaultTextStyle.of(context).style,
        children: [
          TextSpan(text: "ceshi0",style: TextStyle(color: Colors.red)),
          TextSpan(text: "ceshi1",style: TextStyle(color: Colors.blue)),
          TextSpan(text: "ceshi2",style: TextStyle(color: Colors.yellow)),
          TextSpan(text: "ceshi3",style: TextStyle(color: Colors.green),recognizer:TapGestureRecognizer()..onTap=(){
          } ),
        ]
      )),
    );
  }
}
